import request from '@/utils/request'

/** 添加云仓 */
export function gloudWarehouseAdd(data) {
  return request({
    url: '/shop/gloudWarehouse/add',
    method: 'post',
    data
  })
}

/** 获取云仓列表 */
export function gloudWarehouseList(data) {
  return request({
    url: '/shop/gloudWarehouse/list',
    method: 'post',
    data
  })
}

/** 云仓删除 */
export function gloudWarehouseDel(data) {
  return request({
    url: '/shop/gloudWarehouse/del',
    method: 'post',
    data
  })
}
/** 云仓编辑 */
export function gloudWarehouseEdit(data) {
  return request({
    url: '/shop/gloudWarehouse/EditUpdate',
    method: 'post',
    data
  })
}

/** 获取仓库管理列表 */
export function InventoryManagement(data) {
  return request({
    url: '/shop/gloudWarehouse/InventoryManagement',
    method: 'post',
    data
  })
}

/** 添加商品 */
export function addCommodity(data) {
  return request({
    url: '/shop/gloudWarehouse/addCommodity',
    method: 'post',
    data
  })
}

/** 云仓管理-库存管理-删除 */
export function delWarehouse(data) {
  return request({
    url: '/shop/gloudWarehouse/delWarehouse',
    method: 'post',
    data
  })
}

/** 云仓-批量添加 */
export function WarehouseBatch(data) {
  return request({
    url: 'shop/gloudWarehouse/batch',
    method: 'post',
    data
  })
}
/** 云仓管理-库存管理-编辑-获取规格 */
export function modifyMessage(data) {
  return request({
    url: '/shop/gloudWarehouse/modifyMessage',
    method: 'get',
    params: data
  })
}
/** 云仓管理-库存管理-编辑库存 */
export function EditWarehouse(data) {
  return request({
    url: '/shop/gloudWarehouse/EditWarehouse',
    method: 'post',
    data
  })
}

/** 云仓管理-获取不在该云仓的商品列表 */
export function unWarehouseGoodsList(data) {
  return request({
    url: '/shop/gloudWarehouse/notInList',
    method: 'post',
    data
  })
}
